
package ro.qi.framework.sys.scheduler.entities;

import ro.qi.framework.sys.entities.Entity;

public class SchedulerTaskLogCollection extends Entity {

	public SchedulerTaskLogCollection() {
		select();
	}

	public SchedulerTaskLogCollection(int taskId) {
		setTaskId(taskId);
		select();
	}

	public void setTaskId(int value) {
		setValue("taskId", value);
	}

	public int getTaskId() {
		return getIntValue("taskId");
	}
	public int getCollectionSize() {
		return getCollectionSize("taskLogs");
	}

	public int getLogId(int index) {
		return getCollectionIntValue("taskLogs", "logId", index);
	}

	public SchedulerTaskLog getLog(int index) {
		return new SchedulerTaskLog(getLogId(index));
	}

}
